|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.vtp.desktop.projects.core.internals.VoiceResource
org.eclipse.vtp.desktop.projects.core.internals.PromptSet
public class PromptSet
This is a concrete implementation of IPromptSet
and provides the default behavior of that interface.
| Constructor Summary | |
|---|---|
PromptSet(org.eclipse.core.resources.IFile file,
IVoiceToolsResource parent)
Creates a new PromptSet in the provided parent
resource with the given eclipse file resource. |
|
| Method Summary | |
|---|---|
java.lang.String |
getName()
|
protected java.lang.String |
getObjectId()
The object id is used by the event system to uniquely identify a project resource. |
IVoiceToolsResource |
getParent()
Returns the parent of this resource. |
org.eclipse.core.resources.IFile |
getUnderlyingFile()
|
java.io.InputStream |
read()
Opens the prompt definition resource and returns an InputStream that will produce the byte contents
of the resource. |
void |
write(java.io.InputStream source,
org.eclipse.core.runtime.IProgressMonitor monitor)
Requests the contents of the prompt definition resource be replaced with the contents of the given input stream. |
| Methods inherited from class org.eclipse.vtp.desktop.projects.core.internals.VoiceResource |
|---|
addRefreshListener, deferEvents, finalize, getAdapter, getProject, processObjectEvent, refresh, removeRefreshListener, resumeEvents |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.eclipse.vtp.desktop.projects.core.IVoiceToolsResource |
|---|
addRefreshListener, deferEvents, getProject, refresh, removeRefreshListener, resumeEvents |
| Methods inherited from interface org.eclipse.core.runtime.IAdaptable |
|---|
getAdapter |
| Constructor Detail |
|---|
public PromptSet(org.eclipse.core.resources.IFile file,
IVoiceToolsResource parent)
PromptSet in the provided parent
resource with the given eclipse file resource.
file - The eclipse file resource that contains the
prompt definitionsparent - The parent resource| Method Detail |
|---|
public java.lang.String getName()
getName in interface IVoiceToolsResource
public java.io.InputStream read()
throws org.eclipse.core.runtime.CoreException
IPromptSetInputStream that will produce the byte contents
of the resource.
read in interface IPromptSetorg.eclipse.core.runtime.CoreException - If an error occurs while opening the resourcepublic IVoiceToolsResource getParent()
IVoiceToolsResourcethis.
getParent in interface IVoiceToolsResource
public void write(java.io.InputStream source,
org.eclipse.core.runtime.IProgressMonitor monitor)
throws org.eclipse.core.runtime.CoreException
IPromptSet
write in interface IPromptSetsource - An input stream to the new contents of the prompt definition
resourcemonitor - The progress monitor to be used to provide user feedback
during the storage operation
org.eclipse.core.runtime.CoreException - If and error occurs while storing the new
prompt definition contentsprotected java.lang.String getObjectId()
VoiceResource
getObjectId in class VoiceResourcepublic org.eclipse.core.resources.IFile getUnderlyingFile()
getUnderlyingFile in interface IPromptSet
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||